package com.ruoyi.jiuzai.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.jiuzai.mapper.WuzileibieMapper;
import com.ruoyi.jiuzai.domain.Wuzileibie;
import com.ruoyi.jiuzai.service.IWuzileibieService;

/**
 * 物资类别Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-19
 */
@Service
public class WuzileibieServiceImpl implements IWuzileibieService 
{
    @Autowired
    private WuzileibieMapper wuzileibieMapper;

    /**
     * 查询物资类别
     * 
     * @param leiId 物资类别主键
     * @return 物资类别
     */
    @Override
    public Wuzileibie selectWuzileibieByLeiId(Long leiId)
    {
        return wuzileibieMapper.selectWuzileibieByLeiId(leiId);
    }

    /**
     * 查询物资类别列表
     * 
     * @param wuzileibie 物资类别
     * @return 物资类别
     */
    @Override
    public List<Wuzileibie> selectWuzileibieList(Wuzileibie wuzileibie)
    {
        return wuzileibieMapper.selectWuzileibieList(wuzileibie);
    }

    /**
     * 新增物资类别
     * 
     * @param wuzileibie 物资类别
     * @return 结果
     */
    @Override
    public int insertWuzileibie(Wuzileibie wuzileibie)
    {
        return wuzileibieMapper.insertWuzileibie(wuzileibie);
    }

    /**
     * 修改物资类别
     * 
     * @param wuzileibie 物资类别
     * @return 结果
     */
    @Override
    public int updateWuzileibie(Wuzileibie wuzileibie)
    {
        return wuzileibieMapper.updateWuzileibie(wuzileibie);
    }

    /**
     * 批量删除物资类别
     * 
     * @param leiIds 需要删除的物资类别主键
     * @return 结果
     */
    @Override
    public int deleteWuzileibieByLeiIds(Long[] leiIds)
    {
        return wuzileibieMapper.deleteWuzileibieByLeiIds(leiIds);
    }

    /**
     * 删除物资类别信息
     * 
     * @param leiId 物资类别主键
     * @return 结果
     */
    @Override
    public int deleteWuzileibieByLeiId(Long leiId)
    {
        return wuzileibieMapper.deleteWuzileibieByLeiId(leiId);
    }
}
